
#include "member.h"
using namespace std;

member::member()
{
};

member::member(string name_ , int phone_ ,string address_ , string email_ , int credit_card_):customer(true , name_ , phone_)
{
	address = address_ ;
	email = email_ ;
	credit_card = credit_card_ ;
}


/*
void member :: set_active_rents(int a){
    active_rents = a;
}

void member :: get_active_rents(){
    cout << "Number of active rents of the member: "<< active_rents <<endl;
}
*/



// to allow u to enter an address

void member::set_address(string address_)
{
	address = address_;
};


string member::get_address()
{
	return address;
};



void member::set_credit_card(int credit_card_)
{
	credit_card = credit_card_;
};

int member::get_credit_card()
{
	return credit_card;
};


void member::set_email(string email_)
{
	email = email;
};


string member::get_email()
{
	return email;
};


/*
void member :: set_membership_id(int id){
    membership_id = id;
}

void member :: get_membership_id(){
    cout << "membership ID: "<< membership_id <<endl;
}
*/


void member:: view()
{

	cout << "This customer is a Member"<<endl;
    cout << "name: "<<get_name()<< endl;
    cout << "Phone Number: "<< get_phone()<<endl;
	if(rents_now) cout << "This customer is renting a Movie"<<endl;
	else cout<<"This customer is NOT renting any movie"<<endl;
	cout<<"address: "<<get_address()<<endl;
	//cout<<"age: "<<get_age()<<endl;
	cout<<"credit card number: "<<get_credit_card()<<endl;
	cout<<"e-mail: "<<get_email()<<endl;

};

member::~member()
{
};
